
package de.swta.freezay.components;

import org.apache.wicket.markup.html.basic.Label;
import org.apache.wicket.markup.html.link.AbstractLink;
import org.apache.wicket.markup.html.panel.Panel;

/**
 * A Panel to display only one link
 *
 * @author Christian Baeumer
 */
public class ActionPanel extends Panel {

    /**
     * Constructor
     *
     * @param id the markupID
     * @param linkText the link text
     * @param actionLink a link
     */
    public ActionPanel(String id, String linkText, AbstractLink actionLink) {

        super(id);

        /* set up the correct markup id */
        actionLink.setMarkupId("select");
        /* add link to panel */
        add(actionLink);
        /* setup link text */
        actionLink.add(new Label("linkText", linkText));
    }

}
